package com.tjmc.company.api.feign;

import com.tjmc.company.api.entity.CompanyInfoEntity;
import com.tjmc.company.api.entity.JobInfoEntity;
import com.tjmc.recruit.common.core.constant.SecurityConstants;
import com.tjmc.recruit.common.core.constant.ServiceNameConstants;
import com.tjmc.recruit.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(contextId = "jobInfoService", value = ServiceNameConstants.COMPANY_SERVICE)
public interface JobInfoService {
    /**
     * 查询企业职位列表
     *
     * @return
     */
    @GetMapping("/jobInfo/list/{companyId}")
    R<List<JobInfoEntity>> getJobListByCompanyId(@PathVariable Long companyId, @RequestHeader(SecurityConstants.FROM) String from);
}
